import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home'
Vue.use(Router).use(Home)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
      // component: () => import(/* webpackChunkName: "home" */ './views/Home.vue'),
    },
    {
      path: '/mobile',
      name: 'mobile',
      redirect: '/mobile/index',
      component: () => import(/* webpackChunkName: "mobile" */ './views/mobile/Mobile.vue'),
      children: [{
        path: 'index',
        name: 'indexi',
        component: () => import(/* webpackChunkName: "indexi" */ './views/mobile/Index.vue'),
        meta: {
          title: '千尺俱乐部'
        }
      },
      {
        path: 'classify',
        name: 'classifyi',
        component: () => import(/* webpackChunkName: "classifyi" */ './views/mobile/Classify.vue'),
        meta: {
          title: '千尺分类'
        }
      },
      {
        path: 'warehouse',
        name: 'warehousei',
        component: () => import(/* webpackChunkName: "warehousei" */ './views/mobile/Warehouse.vue'),
        meta: {
          title: '千尺仓库'
        }
      },
      {
        path: 'focus',
        name: 'focusi',
        component: () => import(/* webpackChunkName: "focusi" */ './views/mobile/Focus.vue'),
        meta: {
          title: '千尺中心'
        }
      },
      {
        path: 'login',
        name: 'logini',
        component: () => import(/* webpackChunkName: "logini" */ './views/mobile/Login.vue'),
        meta: {
          title: '千尺登录'
        }
      }
      ]
    },
    {
      path: '/manage',
      name: 'manage',
      component: () => import(/* webpackChunkName: "manage" */ './views/manage/Managei.vue')
    }
    // {
    //   path: '/',
    //   name: 'home',
    //   component: Home
    //   // component: () => import(/* webpackChunkName: "home" */ './views/Home.vue'),
    // },
    // {
    //   path: '/mobile',
    //   name: 'mobile',
    //   component: () => import(/* webpackChunkName: "mobile" */ './views/mobile/Mobilei.vue')
    // },
    // {
    //   path: '/classify',
    //   name: 'classify',
    //   component: () => import(/* webpackChunkName: "classify" */ './views/mobile/Classify.vue')
    // },
    // {
    //   path: '/manage',
    //   name: 'manage',
    //   component: () => import(/* webpackChunkName: "manage" */ './views/manage/Managei.vue'),
    //   children: [{
    //     path: '/ma',
    //     name: 'ma',
    //     component: () => import(/* webpackChunkName: "ma" */ './views/manage/Managei.vue')
    //   }]
    // }
  ]
})
